home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5941 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: uvsq.fr!Newsmaster
  2. From: Nicolas Pomarede <pomarede@isty-info.uvsq.fr>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: What is a "Line 1011 emulator  " error ?
  5. Date: 22 Mar 1996 08:09:02 GMT
  6. Organization: Universite de Versailles/St Quentin en Yvelines - France
  7. Message-ID: <4itn6u$52u@soleil.uvsq.fr>
  8. References: <4ip7j3$set@badger.wmin.ac.uk> <4ip8td$k3e@soleil.uvsq.fr> <4islck$eig@ar.ar.com.au>
  9. NNTP-Posting-Host: athanase.isty-info.uvsq.fr
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; HP-UX B.10.01 9000/819)
  14. X-URL: news:4islck$eig@ar.ar.com.au
  15.  
  16. storm@ar.ar.com.au (Storm/Cydonia) wrote:
  17. >Nicolas Pomarede (pomarede@isty-info.uvsq.fr) wrote:
  18.  
  19. >: This means that when your program exits, he may jump to a random
  20. >: location in mem, where the first 2 bytes start with a $F.
  21. >: Perhaps you're messing with the stack pointer or something like this ?
  22. >
  23. >Are you sure about this? I thought this guru occured when one attempted
  24. >to execute an FPU or MMU instruction on a system that was not so equipped.
  25. >And that for FPU instructions the opcode (NOT the PC) started with $F.
  26.  
  27. Well, there's an exception vector associated with Line F error (should be
  28. around $40 or $50 relative to VBR, don't remember). There's 2 possibilities:
  29. if you don't have a MMU, using a instruction starting with $Fxxx will certainly
  30. generate an exception. If you have an MMU, this should correspond to one of
  31. its instructions.
  32.  
  33. For example, the Atari ST (with a 68000) used the Line A and Line F exceptions
  34. for special gfx functions.
  35. So everything depends on the way the exception is handled.
  36.  
  37. >
  38. >: Usually, it means that you're no more executing your own code, but
  39. >: that the CPU is trying to interpret a random location as code. 
  40. >
  41. >Possibly, or possibly he compiled his program for FPU when he doesn't
  42. >have one. Although if he did that I think it would crash instantly -
  43. >a friend made that mistake and as soon as the program tried to call
  44. >it's first OS routine it tried to put all FPU registers on the stack 
  45. >and crashed.
  46.  
  47. In fact, if the programm was in C, it could be either compiled with FPU
  48. ON or messing with the stack (which can provide many different effects).
  49. If it was coded in ASM, I would say the SP pointer was destroyed.
  50.  
  51. ----------------
  52. Nicolas Pomarede
  53. e-mail: pomarede@isty-info.uvsq.fr
  54.  
  55.